<template>
  <router-view></router-view>
</template>

<script setup lang="ts">
import { diffTokenTime } from '@/utils/auth'
import useStore from './store'
import useCountDown from './hooks/useCountDown'
const { appStore } = useStore()
if (appStore.token) {
  if (diffTokenTime()) appStore.logout()
}
useCountDown.checkCountDown()
</script>

<style lang="less">
body {
  font: 14px/1.5 Helvetica Neue, Helvetica, Arial, Microsoft Yahei,
    Hiragino Sans GB, Heiti SC, WenQuanYi Micro Hei, sans-serif;
}
a {
  text-decoration: none;
  color: #333;
}
.clearfix:after,
.clearfix:before {
  content: '';
  display: block;
  clear: both;
}
</style>
